id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Warmup 1replace1

prev  |  next  |  chance
def replace1(x):
    str = 'hi' + x[1:len(x) - 1] + 'hi'
    return str
Function Call  Return Value
replace1('hello')
replace1('goodbye')
replace1(' world ')
replace1('')
replace1(' ')
replace1('oof')

Experiment with this code on Gitpod.io

⬅ Back